Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

How To Delete Cache Of A Particular Template? Rate Topic   - - - - -


Posted 13 August 2016 - 11:27 AM #1

Hello all,


I want to clear cache of a particular template. Is it possible in cs-cart? Actually, i am using




Which will delete whole cache, result in slow down the store. Which is not acceptable by any store administrator. There is a function also "del($key)", but i dont know how to get $keys. Please some one help me to fix this issue.




Satendra kumar

  • johnbol1
  • Never Re
  • Members
  • Join Date: 23-Feb 10
  • 4908 posts

Posted 13 August 2016 - 02:01 PM #2

any good to you



Custom printed hi visibility clothing sale the UK's online hivis safety shop

  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12039 posts

Posted 13 August 2016 - 07:14 PM #3

I'm not sure if the system will respond well to having just one template cache entry removed.  I would suggest you not do that and that you use the function fn_clear_cache($params) using $params to tell it which cache you want to clear.  This has the advantage that it will handle other caches that may be in place like varnish, etc. without you having to know about it.

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.

  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21741 posts

Posted 15 August 2016 - 08:19 AM #4

Go to var/cache/templates/YOUR_THEME/directory and find file which contain required file name at the end of the name. Then delete it

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)


Posted 16 August 2016 - 11:01 AM #5

Thanks to all of you!!!


It is very helpful.