• Hello

    how can i disable cache on custom fields

    i only use memcached on my host (htaccess)

    when i add or change any fields , it will take time to show to others !

    • This topic was modified 5 years, 8 months ago by nightdark.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi, you can clean browser cache with ctrl+f5 , Also You may write to your hosting company and tell them to disable your website cache, and check if you use any cache plugin on your website?

    Thread Starter nightdark

    (@nightdark)

    hello

    i dont use any plugin cache its just cache on htaccess file !

    also i dont care about for my self , its for users !

    Hello,

    Here is how you disable cache on htaccess file.

    Example #1:

    <FilesMatch "\.(css|flv|gif|htm|html|ico|jpe|jpeg|jpg|js|mp3|mp4|png|pdf|swf|txt)$"> <IfModule mod_expires.c> ExpiresActive Off </IfModule> <IfModule mod_headers.c> FileETag None Header unset ETag Header unset Pragma Header unset Cache-Control Header unset Last-Modified Header set Pragma "no-cache" Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" Header set Expires "Thu, 1 Jan 1970 00:00:00 GMT" </IfModule> </FilesMatch>

    Example# 2

    # DISABLE CACHING <IfModule mod_headers.c> Header set Cache-Control "no-cache, no-store, must-revalidate" Header set Pragma "no-cache" Header set Expires 0 </IfModule>

    Let me know if you have any questions.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘cache on custom fields’ is closed to new replies.