Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Updated: Comment #N
Problem/Motivation
Currently the SPS Condition Preview Form gets rendered and cached on every page load. This quickly grows the {cache_form} table on a site with many editors hitting the site. Even though their is a 6 hour expiration on the entries in {cache_form} it would be beneficial to not have this rendered uneccesarily.
Proposed resolution
Put a "Preview Site" link in the admin menu and load the form via an Ajax request, then allow the user to toggle it open and closed. Once in preview mode, then render on every page load until site preview is disabled.
Comments
Comment #1
Elijah Lynn