Updating Cached Front-Facing Content After Gallery Edits

From Littledamien Wiki
Revision as of 19:49, 16 September 2013 by Video8 (talk | contribs) (→‎Process)
Jump to navigation Jump to search

Overview

Documentation of the process of refreshing cached front-facing content after editing gallery images in the Albums CMS.

Use cases

  • Add a new image to the gallery
  • Edit an existing image in the gallery
  • Delete an existing image in the gallery
  • Click "update cache" button for the gallery
  • Update the Album's cache

Process

Adding a new image to the gallery.

  1. Click "add image" button.
    1. JavaScript handler invokes the shared AJAX script, which returns the markup for the form as JSON.
    2. Modal dialog opened with littled formDialog.js library.
  2. Form filled out and submitted.
    1. Shared AJAX handler saves image edits.
      1. /_ajax/images/edit_image.php
      2. GalleryUploadClass instance of image_upload_class
      3. GalleryUploadClass::save()
      4. parent::save()