page caching gets in the way of token substitution

page caching gets in the way of token substitution

Submitted by Jitesh Doshi on Mon, 05/14/2012 - 14:35
Drupal logo

Recently, I wrote a module that exposes my own custom tokens. They worked well, up to a point. But when I tried to use them in the middle of the content of an article, they were not reflecting the latest value. That's because of page caching. The page content is cached by Drupal, and the changing value of token is not reflected after the page get cached. I'll look into this further, and I hope I find a solution.

Please add a comment below if you have any suggestions.

Jitesh Doshi

Profile picture for user Jitesh Doshi
Managing Partner & CTO
  • A seasoned technology entrepreneur and enthusiast
  • A regular speaker at industry conferences and universities
  • Host and organizer of technology user groups
  • Active in management of non-profit organizations serving the local community
  • Leader and contributor for multiple open-source projects
  • Expert in cloud, application integration, web and mobile technologies
  • Author of open-source projects, including on Drupal.org - Popular Tags and PRLP.
  • Developed several highly successful software platforms and frameworks for clients
© 2023 SpinSpire All rights reserved.