Title: Avoid Cache?
Last modified: July 9, 2018

---

# Avoid Cache?

 *  Resolved [schlauchius](https://wordpress.org/support/users/schlauchius/)
 * (@schlauchius)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/avoid-cache/)
 * Hey guys,
 * I have a website getting cached where I inserted a PHP shortcode to show the 
   actual server time. Now, where this page gets cached, the server time is not 
   always up to date. E.g. when I visit the page for the first time at 2pm and come
   back at 3pm, it’s still 2pm. How can I avoid the caching of the PHP shortcode?
 * Thanks!

Viewing 1 replies (of 1 total)

 *  Plugin Author [f1logic](https://wordpress.org/support/users/f1logic/)
 * (@f1logic)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/avoid-cache/#post-10698412)
 * sorry about the delayed response.
    i guess you exclude from cache, the page where
   the shortcode is placed

Viewing 1 replies (of 1 total)

The topic ‘Avoid Cache?’ is closed to new replies.

 * ![](https://ps.w.org/insert-php-code-snippet/assets/icon-128x128.png?rev=1800967)
 * [Insert PHP Code Snippet](https://wordpress.org/plugins/insert-php-code-snippet/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php-code-snippet/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php-code-snippet/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php-code-snippet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php-code-snippet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php-code-snippet/reviews/)

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)
 * [caching](https://wordpress.org/support/topic-tag/caching/)

 * 1 reply
 * 2 participants
 * Last reply from: [f1logic](https://wordpress.org/support/users/f1logic/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/avoid-cache/#post-10698412)
 * Status: resolved