Title: action hooks in theme functions.php
Last modified: August 30, 2016

---

# action hooks in theme functions.php

 *  Resolved [edrubins](https://wordpress.org/support/users/edrubins/)
 * (@edrubins)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/action-hooks-in-theme-functionsphp/)
 * Will the ‘the_post’ action hook still be called for cached posts?
 * [https://wordpress.org/plugins/zencache/](https://wordpress.org/plugins/zencache/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Raam Dev](https://wordpress.org/support/users/raamdev/)
 * (@raamdev)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/action-hooks-in-theme-functionsphp/#post-6621825)
 * [@edrubins](https://wordpress.org/support/users/edrubins/) When a cached page
   is loaded, most of WordPress is not loaded. The whole idea behind caching is 
   to capture the output of a WordPress page and store it as plain HTML. Then, when
   a request for that page comes in, the plain HTML version is loaded so as to avoid
   all the overhead generated by loading WordPress. That makes the pages load faster.
 * So to answer your question, no, the `the_post` action hook does not get called
   when a cached page is loaded.

Viewing 1 replies (of 1 total)

The topic ‘action hooks in theme functions.php’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/zencache_3c4c6b.svg)
 * [ZenCache](https://wordpress.org/plugins/zencache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/zencache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/zencache/)
 * [Active Topics](https://wordpress.org/support/plugin/zencache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/zencache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/zencache/reviews/)

## Tags

 * [Action hooks](https://wordpress.org/support/topic-tag/action-hooks/)

 * 1 reply
 * 2 participants
 * Last reply from: [Raam Dev](https://wordpress.org/support/users/raamdev/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/action-hooks-in-theme-functionsphp/#post-6621825)
 * Status: resolved