Jump to content

Clearing the Cache - Home Page Text not updating


Recommended Posts

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

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.

  • Like 1
Link to comment
Share on other sites

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

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

  • 1 month later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...