PurpleEdge Posted October 3, 2011 Share Posted October 3, 2011 I was having all sorts of trouble getting my home page text to update - I deleted the Home Text Editor Module, re-installed, changed the content, did everything I could to get it to change but it wouldn't! I could change the paragraph text in the administration but the old content kept showing up on the home page frontend! I eventually discovered that the Home Text Editor content was coming from a file in the cache system, and not from the values saved in the database. The only way I could get it to update was to delete the cache folder. Why was this happening? When does the cache get updated? How can I force the cache to refresh and show the current content? Link to comment Share on other sites More sharing options...
gijomloy Posted October 3, 2011 Share Posted October 3, 2011 Did you have a look at the "Settings / Performance" tab? Sorry if category name is not exactly the right one, I use the French version of Presta... Link to comment Share on other sites More sharing options...
PurpleEdge Posted October 3, 2011 Author Share Posted October 3, 2011 Yes, that is where I specified to use a cache, but the cache should get updated when content changes? Link to comment Share on other sites More sharing options...
gijomloy Posted October 3, 2011 Share Posted October 3, 2011 Oh alright, I must have misunderstood the question then. Is your problem related to the smarty cache by chance? Did you empty the directories /tools/smarty/compile and /tools/smarty/cache? Sorry if I am not answering your question. Note that someone enter an improvement request in the bug tracker to have an "empty cache" button in the back-office. Hope it helps. 1 Link to comment Share on other sites More sharing options...
Rom Soul Posted October 5, 2011 Share Posted October 5, 2011 I am also wondering how exactly does the cache system work ... It is strongly recommended everywhere to activate it but I would like to control how long a code or piece of code is kept in the cache ! When a user enters a "news", how long is he supposed to wait before it appears on the homepage ?! I cannot ask my client to connect by FTP in order to empty some mysterious directories !) Edit ! ----------- Important thing (on Prestashop 1.3 at least): if you happen to edit and modify smarty.config.inc.php, do not touch $smarty->caching : Smarty cache system is not compatible with Prestashop engine !! But you can play with $smarty->force_compile and $smarty->debugging . Link to comment Share on other sites More sharing options...
gijomloy Posted October 5, 2011 Share Posted October 5, 2011 I guess that, as webmasters, we should clear our local Prestashop cache after each update. Therefore it would indeed be very practical to have a "clear cache" button in the BO. Now, for the visitor who already visited the website before the change, it may anyway look ugly on his screen. It is an issue because most of the visitors are not tech-savvy and do not Ctrl-refresh the site. In this article : http://www.webhostingtalk.com/showthread.php?t=603279 People mention ideas such as deactivation of the cache or force refresh. It would be nice if someone could clear this up for us... Cheers Link to comment Share on other sites More sharing options...
PurpleEdge Posted November 8, 2011 Author Share Posted November 8, 2011 I've deactivated the cache it was interfering with too many things on the site. I'll see if speed becomes an issue? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now