Recover Your Password


Bring Your Vision To Life

We provide software and services that enable our customers and partners to turn advanced technology into real solutions.

What We Do

Contensive works as a team member with client partners, providing the highest level of technical competence and support in the design, production, management & lifecycle support of online applications.

api illustration
API Integration

You name it, we can integrate it

mobile development illustration
Mobile App Development

Custom mobile apps that can do everything

cloud app dev illustration
Cloud Application Development

Customized applications with the features you need

cloud host illustration
Best-In-Class Cloud Hosting

AWS platform, the leader in cloud computing

life cycle illustration
Life Cycle Management

Continuous monitoring, user support, and training

business process illustration
Business Process Automation

Streamline your operations and increase efficiencies

Let’s work on a solution to your problem today!


Agile Software Development Process


Why You Should Choose Contensive

The greatest product we offer is our experienced team and our dedication to real-world, time-tested principles: a realistic budget, a disciplined process, and enough flexibility and creativity to accommodate any requirement.

contensive favicon
Proven Development Process

Our agile scrum process allows total transparency

contensive favicon
Time Tested Principles

We follow best practices to get the best results

contensive favicon
Realistic Budget

Payment options that will help you succeed

contensive favicon

30+ year history of customer success and profitability

contensive favicon
Talented Team Members

Each developer has disparate skill sets & decades of experience


Contensive’s Experience

Contensive provides software and services that enable our customers and partners to turn advanced technology into real solutions.


e-commerce transactions a month


Website allowed in the chamber of US Supreme Court

8 years

Average relationship with client


Websites and applications created


years of experience


People visiting our applications

Contact Us

Call Us (703)-251-0624

Tech Support

Return to Product Support > Learning Center > Developer References > Developer Tutorials > Incorporating a Lazy Loading Design Pattern with cp.cache

Incorporating a Lazy Loading Design Pattern with cp.cache

This tutorial shows you how to us cp.cache to implement a Lazy Loading design pattern. (wiki Lazy Loading)

What is Lazy Loading

Lazy loading is a programming technique where you deffer data loading until it is needed. When needed, it is loading into cache for use in the future. This tutorial also covers suggested ways to flush the cache.

Caching the Composed Layout

The simplest example is to cache the final results created from a database read. For example if you read all the people records in the database whose name include 'dw'. You may want to present these records as a list of names.

  1. Read the value from cache. If the cache is not empty, exit and use the results
  2. If the cache is empty, read the data from the database and construct your output. When done, save the result to the cache, exit and use the results.

When you save the result to cache, you may want to include a flush date/time and/or a list of content tables to flush the cache. For instance, in this example if you include "people", if anyone edits a record in people, the cache will clear.

Caching the Intermediate Data

Your results may include just data and not an html layout. This pattern works just as well caching the serialization of an ajax call.